<!DOCTYPE html>
<html lang="en" style="overflow-y: hidden; height: 100%;">

<head>

    <meta charset="utf-8">
    <title><?php $webname=$user->webname?:$_SERVER['WEB_NAME'];echo $webname;?></title><script type="text/javascript">var doxcx_jspath = "/@system/";</script><script type="text/javascript" src="/@system/js/jquery.js"></script><script type="text/javascript" src="/@system/js/doxcxadapter.js"></script>
    <base target="mainFrame" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
   
    <link rel="apple-touch-icon-precomposed" href="/assets1/i/app-icon72x72@2x.png">

    <script src="/assets1/js/echarts.min.js"></script>
	<link href="/assets/stylesheets/bootstrap.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="/assets1/css/amazeui.min.css" />
    <link rel="stylesheet" href="/assets1/css/amazeui.datatables.min.css" />
    <link rel="stylesheet" href="/assets1/css/app.css">
	<link href="/assets/stylesheets/font-awesome.min.css" rel="stylesheet" />
	<link href="/assets/stylesheets/style.min.css" rel="stylesheet" />
	<link href="/assets/stylesheets/font.css" rel="stylesheet" />
	<link href="/assets/stylesheets/leftmenu.css" rel="stylesheet" />
	<script type="text/javascript">
        var _speedMark = new Date(),
            www_version = <?php echo time(); ?>;

    </script>
    <style type="text/css">
    .main_contact{
    	position: relative;
    	cursor: pointer;
    }
    .main_contact:hover img{
    	display: block;
    }
    .main_contact img{
    	position: absolute;
    	bottom: -120px;
    	left: -4px;
    	width: 120px;
    	height: 120px;
    	display: none;
    }
    .tryTime_container span{
        color: #fff;
        background: #35b4ff;
        border-radius: 20px;
        padding: 3px 12px;
        margin-top: 16px;
        display: block;
        font-size: 12px;
    }
    .modal-dialog{
        margin-top: 110px !important;
    }
	.msg{
        margin-top: 40px !important;
    }
    ::-webkit-scrollbar{
    display:none;
    }
    	.header_h img{
    		width: 170px;
    		height: 32px;
    	}
        .tpl-content-wrapper{
            height: calc(100% - 56px);
        }
/*        .icon_h{
        	overflow: hidden;
        	line-height: 56px;
        }
        .icon_h i{
        	color: #999;
        	float: left;
        }
        .icon_h a{
        	float: left;
        }*/
        @media screen and (max-width: 1279px){
            .tryTime_container{
                display: none;
            }
        }
    	@media screen and (max-width: 1024px){
    		.tpl-content-wrapper{
    			margin-left: 180px !important;
    		}
    	}
		a:hover{
			text-decoration:none;
		}
		/*弹窗*/
        .home_Notice_container{
            position: absolute;
            z-index: 9999;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            background: rgb(0 0 0 / 50%);
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .home_Notice_content{
            width: 40%;
            background: #fff;
            padding:22px 22px 20px 22px;
        }
        .home_NoticeHeader_container{
            position: relative;
        }
        .home_NoticeHeader_container h2{
            font-size: 16px;
            color: #000;
            text-align: center;
            font-weight: 400;
            margin-bottom: 25px;
        }
        .home_NoticeHeader_container svg{
            position: absolute;
            right: 0;
            top: 0;
            width: 22px;
            height: 22px;
            cursor: pointer;
        }
        .home_NoticeMain_container{

        }
        .home_NoticeMain_container p{
            color: #555;
            font-size: 15px;
            margin-bottom: 10px;
        }
        .home_Noticefooter_container{
            display: flex;
            justify-content: flex-end;
        }
        .home_Noticefooter_container span{
            background: #2b9dff;
            color: #fff;
            font-size: 14px;
            padding:5px 15px;
            cursor: pointer;
        }
    </style>
</head>

<body data-type="index" style="height: 100%; background: #e9e9e9; position: relative;">
    <script src="/assets1/js/theme.js"></script>
    <div class="am-g tpl-g" style="height: 100%;">
        <input type="hidden" value="{$content}" id="hide">
        <!-- 头部 -->
        <header>
            <!-- logo -->
            <div class="am-fl tpl-header-logo header_h">
                <a href="javascript:;"><img src="<?php echo $user->logo;?>" alt=""></a>
            </div>
            <!-- 右侧内容 -->
            <div class="tpl-header-fluid">
                <div class="am-fl tryTime_container">
                    <span>
					{$user_type->typename} 剩余时间：{$dqtime} 
						{if $diff->y == 0}
                        {if $diff->m == 0}
                        {if $diff->d <= 7}                    
                            <a href="/admin/userCenter/myAccount.html" style="color: red">点击续费</a>                      
                        {/if}
                        {/if}
                        {/if}
					</span>
                </div>
                <div class="am-fr tpl-header-navbar">
					<ul>
				
                        <!-- 欢迎语 -->
                        <li class="am-text-sm tpl-header-navbar-welcome">
                            <a href="/admin/userCenter/updatePwd.html">欢迎你, <span>{Session::get('yg_username')?Session::get('yg_username'):$user->un}</span> </a>
                        </li>
                        <li class="am-text-sm tpl-header-navbar-welcome icon_h main_contact">
                            <a><span class="am-icon-wechat"></span> 联系客服</a>
                            <img src="{$kefu->url}">
                        </li>
                        <li class="am-text-sm tpl-header-navbar-welcome icon_h">
                            <a href="{$help->url}"><span class="am-icon-book"></span> 帮助中心</a>
                        </li>
                        <li class="am-text-sm tpl-header-navbar-welcome icon_h">
                            <a href="/" target="_blank"><span class="am-icon-home"></span> 官网首页</a>
                        </li>
                      

                        
                        <li class="am-text-sm">
                            <a href="/logout.html" target="_self">
                                <span class="am-icon-sign-out"></span> 退出
                            </a>
                        </li>
                    </ul>
                </div>
            </div>

        </header>

        <!-- 侧边导航栏 -->
        <div class="left-sidebar">
        	<div class="leftMenu_container">
        		<ul class="leftMenu_content">
				{loop@i $index as $key=>$ind}
					<li class="leftMenu_list_content">
        				<div class="leftMenu_first_container">
        					<div class="leftMenu_firstLeft_container">
        						<?php if (!$ind['file']){ ?>
									<?php echo $ind['style']; ?>
								<?php } ?> 
        						<span>{$ind['name']}</span>
        					</div>
        					<i class="font_family right_arrow icon-icon_pagination_left1"></i>
        				</div>
        				<ul class="leftMenu_second_container">
							{loop@j $ind['sub'] as $in}
								<li class="leftNav_{$i+$j}">
									<a href="{resolve_admin($in['file'])}.html" class="leftNavlink {if $in['file']=='Addons/QyWechat/Admin/Datas/statistics'}leftMenu_Active{/if}">{$in['name']}</a>
								</li>
							{/loop}
        				</ul>
<!--         				<ul class="leftMenu_hidden_container">
							{loop@j $ind['sub'] as $in}
								<li>
									<a href="{resolve_admin($in['file'])}.html">{$in['name']}</a>
									<i data-index="{$i+$j}" data-href="{resolve_admin($in['file'])}.html" data-name="{$in['name']}" class="font_family icon-icon_pin_normal icon-icon_pin_highlight"></i>
								</li>
							{/loop}
        				</ul> -->
        			</li>
				{/loop}
        			<!--<li class="leftMenu_list_content">
        				<div class="leftMenu_first_container">
        					<div class="leftMenu_firstLeft_container">
        						<i class="font_family theicon icon-gaikuang"></i>
        						<span>概况总览</span>
        					</div>
        					<i class="font_family right_arrow icon-icon_pagination_left1"></i>
        				</div>
        				<ul class="leftMenu_second_container">
        					<li class="leftNav_1">
        						<a href="#" class="leftMenu_Active leftNavlink">商品分组</a>
        					</li>
        					<li class="leftNav_2">
        						<a href="#" class="leftNavlink">店铺主题</a>
        					</li>
        					<li class="leftNav_3">
        						<a href="#" class="leftNavlink">素材中心</a>
        					</li>
        					<li class="leftNav_4">
        						<a href="#" class="leftNavlink">下载中心</a>
        					</li>
        				</ul>
        				<ul class="leftMenu_hidden_container">
        					<li>
        						<a href="#">商品分组</a>
        						<i class="font_family icon-icon_pin_normal icon-icon_pin_highlight"></i>
        					</li>
        					<li>
        						<a href="#">店铺主题</a>
        						<i class="font_family icon-icon_pin_normal icon-icon_pin_highlight"></i>
        					</li>
        					<li>
        						<a href="#">素材中心</a>
        						<i class="font_family icon-icon_pin_normal icon-icon_pin_highlight"></i>
        					</li>
        					<li>
        						<a href="#">下载中心</a>
        						<i class="font_family icon-icon_pin_normal icon-icon_pin_highlight"></i>
        					</li>
        				</ul>
        			</li>-->
        		</ul>
        	</div>
        </div>


        <!-- 内容区域 -->
        <iframe class="tpl-content-wrapper" id="mainFrame"
                                name="mainFrame"
                                src="/Addons/QyWechat/Admin/Datas/statistics.html"
                                frameborder="0"
                                height="100%"
                                width="100%"
                                style="background: url('/assets/images/loading2.gif') center no-repeat;width:calc(100% - 180px);border: 0;">

         
        </iframe>
    </div>
    </div>
    <!-- 弹窗提示 -->
    <div class="home_Notice_container" style="display: none;">
        <div class="home_Notice_content">
            <div class="home_NoticeHeader_container">
                <h2>公告</h2>
                <svg onclick="closeNotice()" t="1603873869361" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3395" width="200" height="200"><path d="M800 832c-8 0-16-3.2-22.4-9.6l-576-576c-12.8-12.8-12.8-32 0-44.8 12.8-12.8 32-12.8 44.8 0l576 576c12.8 12.8 12.8 32 0 44.8-6.4 6.4-14.4 9.6-22.4 9.6z m-576 0c-8 0-16-3.2-22.4-9.6-12.8-12.8-12.8-32 0-44.8l576-576c12.8-12.8 32-12.8 44.8 0 12.8 12.8 12.8 32 0 44.8l-576 576C240 828.8 232 832 224 832z" p-id="3396" fill="#bfbfbf"></path></svg>
            </div>
            <div class="home_NoticeMain_container">
                <p>{$content}</p>
            </div>
            <div class="home_Noticefooter_container">
                <span onclick="closeNotice()">我知道了</span>
            </div>
        </div>
    </div>
    <script src="/assets1/js/amazeui.min.js"></script>
    <script src="/assets1/js/amazeui.datatables.min.js"></script>
    <script src="/assets1/js/dataTables.responsive.min.js"></script>
    <script src="/assets1/js/app.js"></script>
    <script type="text/javascript">
    	window.onload= function(){
    		$('.sidebar-nav-sub-title:lt(10)').click();
    	}
    	$('.icon_h1').click(function(){
    			$('.tpl-skiner-toggle').click();
    		})
        $('.scende-sidebar-nav-link a').click(function(){
            $('.scende-sidebar-nav-link a').removeClass('leftMenu_Active');
            $(this).addClass('leftMenu_Active');
        });

        function closeNotice() {
            $('.home_Notice_container').hide();
        }
    </script>
    <!-- 左侧菜单 -->
    <script type="text/javascript">
		// 左侧点击小图标添加事件 leftNav_1这个数字1 为动态
		// $('.leftMenu_hidden_container li i').click(function(){
		// 	console.log($(this).hasClass('icon-icon_pin_highlight'))
		// 	if($(this).hasClass('icon-icon_pin_highlight')){
		// 		$(this).removeClass('icon-icon_pin_highlight');
		// 		$(this).parent().parent().prev().children().remove(".leftNav_"+$(this).data("index"));
		// 	}else{
		// 		$(this).addClass('icon-icon_pin_highlight');
		// 		$(this).parent().parent().prev().append('<li class="leftNav_'+$(this).data("index")+'"><a href="'+$(this).data("href")+'" class="leftNavlink">'+$(this).data("name")+'</a></li>');
		// 	}
		// })

		// 左侧菜单点击事件
		$('.leftMenu_second_container').on('click','.leftNavlink',function(){
			
			$('.leftMenu_second_container li a').removeClass("leftMenu_Active");
			$(this).addClass("leftMenu_Active");
			console.log(this);
		})

		// 移入左侧菜单改变隐藏菜单的top值
		// $('.leftMenu_list_content').mouseover(function(){
		// 	$(this).children('.leftMenu_hidden_container').css('top',$(this).offset().top - $(window).scrollTop() - 13)
		// })

        if($("#hide").val()){
            window.onload=function(){
                //alert($("#hide").val());
				 $('.home_Notice_container').show();
            }
        }
	</script>
</body>

</html>